//
//  NetworkManganer.swift
//  AsyncAwait
//
//  Created by admin on 2021/10/27.
//

import Foundation



class NetworkManager<T:Codable>: NSObject {
    
        static func netWorkRequest(_ url: String , completeHandler: @escaping (Response<T>?, Error?)->()) {
    
            DispatchQueue.global().asyncAfter(deadline: .now() + 3) {
                DispatchQueue.main.async {
                    completeHandler(Response(), nil)
                }
            }
        }
}


struct Response<T> {
    var code: Int?
    var data:T?
    var message: String?
}
